import java.util.ArrayList;
import java.util.Scanner;

class Student{
    String id;
    String name;
    int age;

    public Student(String id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public String toString(){
        return "id="+id+",name="+name+",age="+age;
    }
}
class StudentList{
    ArrayList<Student> sList = new ArrayList();

    public void addStudent(Student s){
        sList.add(s);
    }
    public void showStudent(){
        for(Student s:sList){
            System.out.println(s);
        }
    }

}
public class Main5 {
    public static void main(String[] args) {
        StudentList t = new StudentList();
        Scanner sc = new Scanner(System.in);
        t.addStudent(new Student(sc.next(),sc.next(), sc.nextInt()));
        t.addStudent(new Student(sc.next(),sc.next(), sc.nextInt()));
        t.addStudent(new Student(sc.next(),sc.next(), sc.nextInt()));
        t.addStudent(new Student(sc.next(),sc.next(), sc.nextInt()));
        t.showStudent();
        sc.close();
    }
}
